#define _CRT_SECURE_NO_WARNINGS 1



#include <stdio.h>



int main()



{



	int sum = 0;



	for (int i = 9; i <= 100; i++)



	{



		int temp = i;



		do



		{

			if (temp % 10 == 9)

				sum++;

			temp /= 10;



		} while (temp != 0);



	}



	printf("%d", sum);



	return 0;



}